package com.xdcplus.web.common.enums;

public enum DeletedEnum {
    // 数据操作错误定义
    NORMAL(0L, "未删除"),
    DELETED(1L, "已删除"),
    ;

    private Long code;

    private String msg;

    public static String getMsg(Long code) {
        for (DeletedEnum ele : values()) {
            if(ele.getCode().equals(code)) {return ele.getMsg();}
        }
        return null;
    }

    DeletedEnum(Long code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public Long getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }

}
